From b320f8524542f19d81f9cc73dad93e56bb9cc549 Mon Sep 17 00:00:00 2001 From: "smh22@tempest.cl.cam.ac.uk" Date: Thu, 30 Dec 2004 14:28:53 +0000 Subject: [PATCH] bitkeeper revision 1.1159.170.73 (41d410a5UNN19EUanWSnfJ52P1DlQw) remove unused fn --- BitKeeper/etc/ignore | 1 + xen/arch/x86/e820.c | 34 ---------------------------------- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/BitKeeper/etc/ignore b/BitKeeper/etc/ignore index 6767868bd3..de77ccebfc 100644 --- a/BitKeeper/etc/ignore +++ b/BitKeeper/etc/ignore @@ -88,3 +88,4 @@ install/* patches/ebtables-brnf-5_vs_2.4.25.diff patches/ebtables.diff tools/x2d2/minixend +BLOG diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index fb2176258a..5ebc2324e7 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -5,40 +5,6 @@ struct e820map e820; -static void __init limit_regions(unsigned long long size) -{ - unsigned long long current_addr = 0; - int i; - -#if 0 - if (efi_enabled) { - for (i = 0; i < memmap.nr_map; i++) { - current_addr = memmap.map[i].phys_addr + - (memmap.map[i].num_pages << 12); - if (memmap.map[i].type == EFI_CONVENTIONAL_MEMORY) { - if (current_addr >= size) { - memmap.map[i].num_pages -= - (((current_addr-size) + PAGE_SIZE-1) >> PAGE_SHIFT); - memmap.nr_map = i + 1; - return; - } - } - } - } -#endif - - for (i = 0; i < e820.nr_map; i++) { - if (e820.map[i].type == E820_RAM) { - current_addr = e820.map[i].addr + e820.map[i].size; - if (current_addr >= size) { - e820.map[i].size -= current_addr-size; - e820.nr_map = i + 1; - return; - } - } - } -} - static void __init add_memory_region(unsigned long long start, unsigned long long size, int type) { -- 2.30.2